package top.infopub.mgr.adm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import top.infopub.generic.GenericDao;
import top.infopub.generic.GenericServiceImpl;
import top.infopub.mgr.adm.dao.MeetingRoomDao;
import top.infopub.model.adm.MeetingRoom;
import top.infopub.mgr.adm.service.MeetingRoomService;

@Service
public class MeetingRoomServiceImpl extends GenericServiceImpl<MeetingRoom, String> implements
		MeetingRoomService {

	@Autowired
	private MeetingRoomDao meetingRoomDao;
	
	@Override
	public GenericDao<MeetingRoom, String> getDao() {
		return meetingRoomDao;
	}

    @Override
    public int queryMeetingRoomByName(String roomName) {
        int count = meetingRoomDao.queryMeetingRoomByName(roomName);
        return count;
    }

}